package org.exia.minisig.model.object;

import java.util.ArrayList;

public abstract class DescriptibleElement {
	//VAR
	private int id;
	private String label;
	private String text;
	private ArrayList<String> urls;
	private ArrayList<String> images;
	//GET & SET
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public ArrayList<String> getUrls() {
		if (this.urls == null){
			this.urls = new ArrayList<>();
		}
		return this.urls;
	}
	public void setUrls(ArrayList<String> urls) {
		this.urls = urls;
	}
	public ArrayList<String> getImages() {
		if (this.images == null){
			this.images = new ArrayList<>();
		}
		return images;
	}
	public void setImages(ArrayList<String> images) {
		this.images = images;
	}

	//METHODE
	public void addURL(String url){
		if (this.urls == null){
			this.urls = new ArrayList<>();
		}
		this.urls.add(url);
	}
	public void addImage(String imgURL){
		if (this.images == null){
			this.images = new ArrayList<>();
		}
		this.images.add(imgURL);
	}
}
